
package com.angel.sensors.model.types;

import android.content.Context;
import com.angel.sensors.R;
import com.angel.sensors.model.DerivedMeter;
import com.angel.sensors.model.MeterType;
import com.angel.sensors.model.SensorComponent;
import com.angel.sensors.model.SensorStrings;
import com.angel.sensors.model.StringComponent;

public class NoMovementMeter extends DerivedMeter {
        
    public NoMovementMeter(Context context) {
        super(context);
        
        initComponents(new SensorComponent[]{
            new StringComponent(SensorStrings.VALUE, context.getResources().getString(R.string.value))
        });
        updateStringValue(SensorStrings.VALUE, "(not yet implemented)");
    }

    public boolean isPresent() {
        return true;
    }

    @Override
    public int getType() {
        return MeterType.NO_MOVEMENT;
    }
    
    public String getName() {
        return "no_movement";
    }
    
    public String getText() {
        return context.getResources().getString(R.string.no_movement);
    }

    @Override
    protected void onStart() {
    }

    @Override
    protected void onStop() {
        stopTimer();
    }
}

